using System.Runtime.Serialization;

namespace StockholmsStad.Runtime.Serialization.DataContract
{
    [DataContract]
    public abstract class PersonDetails
    {
        [DataMember]
        public string FirstNames { get; set; }

        [DataMember]
        public string LastName { get; set; }

        [DataMember]
        public string BirthdayNumber { get; set; }

        [DataMember]
        public string Email { get; set; }

        public string FullName
        {
            get { return string.Format("{0} {1}", FirstNames, LastName); }
        }
    }
}